package edt;

import org.joda.time.DateTime;
import org.joda.time.Duration;
import org.joda.time.LocalTime;

import com.thirdnf.ResourceScheduler.Appointment;
import com.thirdnf.ResourceScheduler.Resource;

public class CreneauModele implements Appointment {

	

	private String _title;
    private Resource _resource;
    private DateTime _dateTime;
    private boolean alreadySync;
    private String matiere;
    private String type;
    private String classe;
    private String groupe;
    
    private Duration duration;

    public CreneauModele(String title, LocalTime time)
    {
        _title = title;
        _dateTime = time.toDateTimeToday();
    }
    
    public CreneauModele()
    {

    }

    public DateTime getDateTime()
    {
        return _dateTime;
    }

    public String getTitle()
    {
        return _title;
    }

    public Resource getResource()
    {
        return _resource;
    }

    public Duration getDuration()
    {
        return duration;
    }
	
    public void setDuration(int duree) {
    	duration = Duration.standardMinutes(duree);
    }

    
    public void set_title(String _title) {
		this._title = _title;
	}

    public void setType(String ltype) {
		this.type = ltype;
	}
    
    public String getType() {
		return this.type;
	}

	public String getClasse() {
		return classe;
	}

	public void setClasse(String classe) {
		this.classe = classe;
	}

	public String getGroupe() {
		return groupe;
	}

	public void setGroupe(String groupe) {
		this.groupe = groupe;
	}

	public Resource get_resource() {
		return _resource;
	}

	public void set_resource(Resource _resource) {
		this._resource = _resource;
	}

	public boolean isAlreadySync() {
		return alreadySync;
	}

	public void setAlreadySync(boolean alreadySync) {
		this.alreadySync = alreadySync;
	}

	public String getMatiere() {
		return matiere;
	}

	public void setMatiere(String matiere) {
		this.matiere = matiere;
	}

	public DateTime get_dateTime() {
		return _dateTime;
	}

	public void set_dateTime(LocalTime localTime) {
		this._dateTime = localTime.toDateTimeToday();
	}

	public String get_title() {
		return _title;
	}

    
    
    
}
